package org.jeecg.modules.satff.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 假期规则
 * @Author: nbacheng
 * @Date:   2024-12-15
 * @Version: V1.0
 */
@Data
@TableName("oa_holiday_rule")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="oa_holiday_rule对象", description="假期规则")
public class HolidayRule implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**假期名称*/
	@Excel(name = "假期名称", width = 15)
    @ApiModelProperty(value = "假期名称")
    private String name;
	/**请假单位*/
	@Excel(name = "请假单位", width = 15, dicCode = "holiday_unit")
	@Dict(dicCode = "holiday_unit")
    @ApiModelProperty(value = "请假单位")
    private String holidayUnit;
	/**请假时长核算*/
	@Excel(name = "请假时长核算", width = 15, dicCode = "holiday_length")
	@Dict(dicCode = "holiday_length")
    @ApiModelProperty(value = "请假时长核算")
    private String holidayLength;
	/**余额发放方式*/
	@Excel(name = "余额发放方式", width = 15, dicCode = "balance_way")
	@Dict(dicCode = "balance_way")
    @ApiModelProperty(value = "余额发放方式")
    private String balanceWay;
	/**应用范围*/
	@Excel(name = "应用范围", width = 15, dicCode = "range")
	@Dict(dicCode = "range")
    @ApiModelProperty(value = "应用范围")
    private String rangeType;
	/**是否带薪*/
	@Excel(name = "是否带薪", width = 15, dicCode = "paid_holiday")
	@Dict(dicCode = "paid_holiday")
    @ApiModelProperty(value = "是否带薪")
    private String isPaidHoliday;
	/**选择部门*/
	@Excel(name = "选择部门", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
	@Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id")
    @ApiModelProperty(value = "选择部门")
    private String departmentIds;
	/**新员工请假*/
	@Excel(name = "新员工请假", width = 15, dicCode = "new_crew_holiday_dict")
	@Dict(dicCode = "new_crew_holiday_dict")
    @ApiModelProperty(value = "新员工请假")
    private String newStaffHolidayWay;
	/**设置员工假期余额*/
	@Excel(name = "设置员工假期余额", width = 15)
    @ApiModelProperty(value = "设置员工假期余额")
    private String isSetBalance;
	/**选择人员*/
	@Excel(name = "选择人员", width = 15, dictTable = "sys_user", dicText = "realname", dicCode = "username")
	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "选择人员")
    private String userIds;
}
